package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.GxTempStatement;

/**
 * 模板语句Mapper接口
 * 
 * @author lsn
 * @date 2023-01-14
 */
public interface GxTempStatementMapper 
{
    /**
     * 查询模板语句
     * 
     * @param tempId 模板语句主键
     * @return 模板语句
     */
    public GxTempStatement selectGxTempStatementByTempId(Long tempId);

    /**
     * 查询模板语句列表
     * 
     * @param gxTempStatement 模板语句
     * @return 模板语句集合
     */
    public List<GxTempStatement> selectGxTempStatementList(GxTempStatement gxTempStatement);

    public List<GxTempStatement> selectGxTempStatementListByUser(GxTempStatement gxTempStatement);

    public List<GxTempStatement> selectGxTempStatementListByDept(GxTempStatement gxTempStatement);

    /**
     * 新增模板语句
     * 
     * @param gxTempStatement 模板语句
     * @return 结果
     */
    public int insertGxTempStatement(GxTempStatement gxTempStatement);

    /**
     * 修改模板语句
     * 
     * @param gxTempStatement 模板语句
     * @return 结果
     */
    public int updateGxTempStatement(GxTempStatement gxTempStatement);

    /**
     * 删除模板语句
     * 
     * @param tempId 模板语句主键
     * @return 结果
     */
    public int deleteGxTempStatementByTempId(Long tempId);

    /**
     * 批量删除模板语句
     * 
     * @param tempIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGxTempStatementByTempIds(Long[] tempIds);
}
